<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        var money = parseFloat(prompt("请输入税前工资"));
        var homeMoney = money * 0.1 * 2;
        alert("您的公积金额是（元）" + homeMoney)
    </script>
</head>

<body>
</body>

</html>